package com.ticket.sass.provider.dto.output.film;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ticket.sass.provider.model.KeyInfoModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * @author ywb
 * @date 2024-05-08 11:27
 */
@Data
@ApiModel
public class FilmQueryOutput {
    @ApiModelProperty(value = "影片名")
    private String name;
    
    @ApiModelProperty(value = "影片封面")
    private KeyInfoModel coverModel;
    
    @ApiModelProperty(value = "上映时间")
    private LocalDate releaseDate;
    
    @ApiModelProperty(value = "上映地区")
    private String releaseArea;
    
    @ApiModelProperty(value = "导演")
    private String director;
    
    @ApiModelProperty(value = "主演员")
    private String[] actors;
    
    @ApiModelProperty(value = "类型")
    private String[] types;
    
    @ApiModelProperty(value = "片长")
    private Integer duration;
    
    @ApiModelProperty(value = "剧情描述")
    @TableField("\"desc\"")
    private String desc;
    
    @ApiModelProperty("影片评分")
    private BigDecimal score;
    
    @ApiModelProperty(value = "影片版本")
    private List<FilmVersionOutput> versions;
}
